#pragma once

#include <atomic>
#include <memory>
#include "base_noncopyable.h"
#include "common_media_define.h"
#include "media_frame.h"
#include "base_callback_list.h"

namespace El {
namespace Media {

class OSDManager {
    DISALLOW_COPY_AND_MOVE(OSDManager);

public:
    static OSDManager &GetInstance();

    OSDManager();
    ~OSDManager();

    /**
     * @brief 启动OSD模块
     * @return true 成功，false 失败
     */
    bool Start();

    /**
     * @brief 关闭OSD模块
     */
    void Stop();

private:
private:
    bool isStarted_{false};
    int32_t osdHandle_{0};
};

} // namespace Media
} // namespace El